package com.example.easy.excel.demo.data;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

//设置表头和添加的数据字段
@Data
public class DemoData {
    @ExcelProperty(value = "编号标题",index = 0)
    private Integer no;

    @ExcelProperty(value = "姓名标题",index = 1)
    private String name;


    @ExcelProperty(value = "百分数据标题",index = 2)
    private Double doubleDate;

    @ExcelProperty(value = "日期标题",index = 3)
    private Date date;

    @ExcelProperty(value = "日期标题",index = 4)
    private LocalDateTime localDateTime;
    /**
     * 忽略这个字段
     */
    @ExcelIgnore
    private String ignore;
}
